from enum import Enum

class Keys(Enum):
    # todo 将所有的redis的key，其他的Key放在这里管理
    WX_ACCESSTOKEN="MXTF:WX:ACCESSTOKEN"
    """MXTF:WX:ACCESSTOKEN"""
    USER_API_TOKEN = "mxtf:api:security:jwt:{}"
    """mxtf:api:security:jwt:{}"""
    
class Gkey(str):
    """生成Key，管理Key"""
    def __new__(cls,key:Keys,*args):
        v=key.value.format(*args)
        return v